/**
 * Copyright &copy; 2015-2017  All rights reserved.
 * Licensed under the 深圳市闲闲科技 License, Version 1.0 (the "License");
 *
 */
package com.kehutong.admin.entity.app;

import java.util.List;

import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

/**
 * 应用端
 * @author ThinkGem
 * @version 2013-05-15
 */
@Table(value="sys_role_app", idType=IDType.TIMESTAMP)
public class AppRole extends Entity {

	private static final long serialVersionUID = 1016417869090528542L;

	protected AppRole(String id) {
        super(id);
	}

	@Column(comment="公司编号")
    private String companyNo;
	
	@Column(comment="角色名称")
    private String name;
	
	@Column(length = 64, comment="描述")
	private String remarks;

	@Column(length=Short.MAX_VALUE, comment="菜单列表")
    private List<String> menus;
	
	@JSONField(serialize=false)
	@Column(comment = "逻辑删除")
	private boolean deleted;

	public String getCompanyNo() {
		return companyNo;
	}

	public void setCompanyNo(String companyNo) {
		this.companyNo = companyNo;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public List<String> getMenus() {
		return menus;
	}

	public void setMenus(List<String> menus) {
		this.menus = menus;
	}

	public boolean isDeleted() {
		return deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}

}
